package cn.aran.basic.constants;

public class BaseConstants {

    /**
    * @Description: 网信通常量类
    * @Author: Aran
    * @Version: 1.0
    * @Date:  2022/7/6 11:50
    */
    public class SmsRegisterConstant {
        // 用户名
        public static final String SMS_UID = "Aran";
        // 短信密钥
        public static final String SMS_KEY = "4F97722DEAC4AA99179A732AA8E08F90";
    }

    /**
    * @Description: 验证码常量
    * @Author: Aran
    * @Version: 1.0
    * @Date:  2022/7/6 15:26
    */
    public class VerifyCodeConstant {
        public static final String PHONE_REGISTER_PREFIX = "phoneRegister:";
        public static final String EMAIL_REGISTER_PREFIX = "emailRegister:";
        public static final String WECHAT_BINDER_PREFIX = "wechatBinder:";
        // 短信登录验证码
        public static final String PHONE_LOGIN_PREFIX = "phoneLogin:";
    }

    /**
    * @Description: 微信登录
    * @Author: Aran
    * @Version: 1.0
    * @Date:  2022/7/10 17:29
    * @Parameters:
    * @Return
    */
    public class WechatConstant {
        public static final String APPID = "wxd853562a0548a7d0";
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    }
}
